package com.huaxin.hxmoduleworkorder.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.huaxin.hxmoduleworkorder.dto.ResponseResult;
import com.huaxin.hxmoduleworkorder.dto.request.InspectionTemplateCreateReqDTO;
import com.huaxin.hxmoduleworkorder.dto.request.InspectionTemplatePageListReqDTO;
import com.huaxin.hxmoduleworkorder.dto.request.InspectionTemplateToggleStatusReqDTO;
import com.huaxin.hxmoduleworkorder.dto.request.InspectionTemplateUpdateReqDTO;
import com.huaxin.hxmoduleworkorder.models.InspectionTemplate;

public interface InspectionTemplateService extends IService<InspectionTemplate> {
    ResponseResult<InspectionTemplate> create(InspectionTemplateCreateReqDTO in);

    ResponseResult<InspectionTemplate> get(String id);

    ResponseResult<String> update(InspectionTemplateUpdateReqDTO in);

    ResponseResult<String> delete(String id);

    ResponseResult<Page<InspectionTemplate>> pageList(InspectionTemplatePageListReqDTO in);

    ResponseResult<String> toggleStatus(InspectionTemplateToggleStatusReqDTO in);
}
